home *** CD-ROM | disk | FTP | other *** search
- #include <A4Stuff.h>
- #include <Gestalt.h>
- #include <Resources.h>
- #include <Types.h>
-
- //============================================================================
-
- //============================================================================
-
- /*
-
- static asm test();
- asm test()
- {
- move.l #1234,(A0)
- rts
- }
-
- Hunk: Kind=HUNK_LOCAL_CODE Name="test"(1) Size=16
- 00000000: 20BC 0000 04D2 move.l #1234,(a0)
- 00000006: 4E75 rts
- 00000008: 8474 6573 7400 dc.b 0x84,'test',0x00
- 0000000E: 0000
-
- */
-
- //============================================================================
-
- void main (void)
- {
- long oldA4 = SetCurrentA4();
- OSErr err = noErr;
- SelectorFunctionUPP oldRtn;
-
- DetachResource(GetResource('INIT', 0));
-
- // err = NewGestalt('SPJ!',
-
- // err = ReplaceGestalt('SPJ!', , &oldRtn);
-
- SetA4(oldA4);
- }
-
- //============================================================================
-